﻿Public Class RxOperacione

    Public Shared Function rptGerenciales_xOperacion(ByVal descEmpresa As String, ByVal DisplaySelect As Boolean, ByVal rptGerencial As EproformaCabecera) As List(Of ExOperaciones)
        Dim xOperaciones As List(Of ExOperaciones) = Nothing

        Dim options As New TransactionOptions
        options.IsolationLevel = Transactions.IsolationLevel.ReadCommitted
        options.Timeout = New TimeSpan(0, 2, 0)

        Using scope As New TransactionScope(TransactionScopeOption.Required, options)
            Try
                xOperaciones = DxOperaciones.rptGerenciales_xOperacion(descEmpresa, rptGerencial)
                If xOperaciones Is Nothing Then xOperaciones = New List(Of ExOperaciones)
                'If DisplaySelect Then accions.Insert(0, New xOperaciones("00", "-- SELECIONAR --"))
                scope.Complete()
            Catch ex As Exception
                Throw
            End Try
        End Using

        Return xOperaciones
    End Function

End Class
